import { _decorator, Component, director, find, Node } from 'cc';
import { Player } from './Player';
import { Actor } from '../Actor';
const { ccclass, property } = _decorator;

@ccclass('PlayerManager')
export class PlayerManager extends Component {
    public static inst: PlayerManager;
    @property(Actor) player: Player = null;
    protected onLoad(): void {
        if (PlayerManager.inst != null) {
            this.destroy()
        } else {
            PlayerManager.inst = this;
        }
    }
}


